package com.yym.sina.weibo;

import java.io.IOException;
import java.util.Properties;

public class WeiboConfigLoader {

	private static WeiboConfigLoader instance = new WeiboConfigLoader();
	private Properties propertie;
	
	private WeiboConfigLoader()
	{
		propertie = new Properties(); 
		
		try {
			propertie.load(getClass().getResourceAsStream("/weiboConfig.properties"));			
		} catch (IOException e) {			
			e.printStackTrace();
		} 
	}
	
	public static WeiboConfigLoader getInstance()
	{
		return instance;
	}
	
	public String getValue(String key)
	{
		return propertie.getProperty(key);
	}
	
	
}
